diff: Fix adding CLI options twice
authorMatthew Barnes <mbarnes@redhat.com>
Thu, 18 Jun 2015 21:58:13 +0000 (17:58 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Thu, 18 Jun 2015 21:58:13 +0000 (17:58 -0400)
src/ostree/ot-builtin-diff.c

index fb74423981650aff64e8f86daeba7e0eb2b095de..2a27f5d2913b0d3fede6eb791e6b743ae8046d5b 100644 (file)
@@ -131,7 +131,6 @@ ostree_builtin_diff (int argc, char **argv, GCancellable *cancellable, GError **
   g_autoptr(GPtrArray) added = NULL;
 
   context = g_option_context_new ("REV TARGETDIR - Compare directory TARGETDIR against revision REV");
-  g_option_context_add_main_entries (context, options, NULL);
 
   if (!ostree_option_context_parse (context, options, &argc, &argv, OSTREE_BUILTIN_FLAG_NONE, &repo, cancellable, error))
     goto out;